package com.yeyks.other.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class RecruitmentOfCityPartnersAddParam {


    @ApiModelProperty(value = "姓名")
    @NotBlank(message = "姓名不能为空")
    private String name;

    @ApiModelProperty(value = "电话")
    @NotBlank(message = "电话不能为空")
    @Pattern(regexp = "^1\\d{10}$", message = "电话错误")
    private String phone;

    @ApiModelProperty(value = "省")
    @NotBlank(message = "省不能为空")
    private String province;

    @ApiModelProperty(value = "市")
    @NotBlank(message = "市不能为空")
    private String city;

    @ApiModelProperty(value = "金额")
    @NotBlank(message = "金额不能为空")
    private String amount;

    @ApiModelProperty(value = "备注")
    private String remark;
}
